package com.wsc.it.parking;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.wsc.it.parking.enums.JslifeInterfaceEnum;
import com.wsc.it.parking.vo.CarInfoRequest;
import com.wsc.it.parking.vo.JslifeRequestBody;
import com.wsc.it.utils.PrinterUtil;

/**
 * @Description 捷顺测试
 */
public class JslifeMain {
	private static final Logger log = LoggerFactory.getLogger(PrinterUtil.class);

	/**
	public static void main(String[] args) {
		//临车：测试车牌 //月卡：测试车牌
			String cid = "hy";
	        if ("hy".equals(cid)) {
	            cid = JslifeInterfaceEnum.HY_CID.getUrl();
	        }
	        if ("xj".equals(cid)) {
	            cid = JslifeInterfaceEnum.XJ_CID.getUrl();
	        }
		  	JslifeRequestBody<CarInfoRequest> requestBody = new JslifeRequestBody<>();
	        requestBody.setServiceId(JslifeInterfaceEnum.GENERATEORDERBYCARNO.getUrl());
	        requestBody.setRequestType("DATA");
	        CarInfoRequest carInfoRequest =new CarInfoRequest();
	        carInfoRequest.setCarNo("测试车牌");
	        
	        requestBody.setAttributes(carInfoRequest);
	        
	        String responseJson = JslifeUtil.jslifeAs(requestBody, cid);
	        log.info("3.2.2.3 按车牌生成订单 (不限停车场)： {}",responseJson);
	        
	}
	*/

   
}